package com.gp.controller;

import com.gp.service.IncomeService;
import com.gp.util.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @program:carrent-pro
 * @author: luzzh
 * @Time: 2022-03-12 17:44
 * @Version: 1.0
 */
@CrossOrigin
@RestController
@RequestMapping("income")
public class IncomeController {
    @Autowired
    private IncomeService incomeService;
    @GetMapping("/incomeRecord")
    public CommonResult incomeRecord(@RequestParam("yearMonth")String yearMonth){
        return incomeService.selectIncome(yearMonth);
    }
}
